﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GroupManagement.aspx.cs" Inherits="Tranco.Views.GroupManagement"
 MasterPageFile="~/Shares/Default.Master"
    EnableEventValidation="False" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HolderPage" runat="server">
    <link rel="stylesheet" type="text/css" href="../Css/Style.css" />
    <div id="contentMain" class="contentMain">
        <div id="titleHead" class="titleHead">
            Nhóm người dùng
        </div>
        <div id="details" class="contentDetails">
            <table style="width: 100%">
                <tr>
                    <td colspan="2" rowspan="1" style="line-height: 10px">
                        &nbsp; &nbsp;</td>
                </tr>
                <tr>
                    <td style="width: 301px">
                        &nbsp;</td>
                    <td>
                        &nbsp; Tìm nhóm người dùng:&nbsp;<asp:TextBox ID="txtFindUser" runat="server" Width="186px"></asp:TextBox>
                        <asp:Button ID="btnSearch" runat="server" Text="Tìm" Width="51px" 
                            onclick="btnSearch_Click" />
                    </td>
                </tr>
            </table>
            <div id="grd" class="grd">
                <!-- END FILTER -->
                <!-- START CONTENT -->
                <asp:GridView ID="GridViewList" runat="server" AutoGenerateColumns="False" BackColor="White"
                    BorderColor="#DFDFDF" BorderStyle="Solid" BorderWidth="1px" CellPadding="4" ForeColor="Black"
                    GridLines="Vertical" Width="666px" CssClass="gridview" HorizontalAlign="Center"
                    AllowSorting="True" Font-Size="13px" OnSorting="GridViewListSorting" OnRowCommand="GridViewListRowCommand" 
                        >
                    <RowStyle BackColor="#fff6db" />
                    <Columns>
                        <asp:TemplateField HeaderText="">
                            <ControlStyle />
                            <HeaderStyle CssClass="LineHeaderf" ></HeaderStyle>
                            <ItemTemplate>
                                <asp:CheckBox ID="cbSelection" runat="server" />
                            </ItemTemplate>
                            <ItemStyle CssClass="lblGridf" Width="30px" HorizontalAlign="Left"/>
                        </asp:TemplateField>

                        <asp:TemplateField HeaderText="Nhóm ID" SortExpression="GroupId">
                            <HeaderStyle CssClass="LineHeader"></HeaderStyle>
                            <ItemTemplate>
                            <asp:LinkButton ID="lbtGroupId" Text='<%# Eval("GroupId") %>' runat="server"
                            CommandName="Select" CommandArgument='<%# Eval("GroupId")%>' ToolTip='<%# Eval("Name")%>'>
                            </asp:LinkButton>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center"/>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Tên Nhóm" SortExpression="Name">
                            <HeaderStyle CssClass="LineHeader"></HeaderStyle>
                            <ItemTemplate>
                                <asp:LinkButton ID="lbtGroup" Text='<%# Eval("Name") %>' runat="server"
                            CommandName="Select" CommandArgument='<%# Eval("GroupId")%>' ToolTip='<%# Eval("Name")%>'>
                            </asp:LinkButton>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Mô tả" SortExpression="Description">
                            <HeaderStyle CssClass="LineHeader"></HeaderStyle>
                            <ItemTemplate>
                                <asp:Label ID="LabeDescription" runat="server" Text='<%# Eval("Description") %>'></asp:Label>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:TemplateField>
                    </Columns>
                    <FooterStyle BackColor="Blue" />
                    <PagerStyle BackColor="#0084ff" ForeColor="Black" HorizontalAlign="Center"/>
                    <HeaderStyle BackColor="#3b5996" Font-Bold="True" ForeColor="White" />
                    <AlternatingRowStyle BackColor="White" />
                    <EmptyDataTemplate>
                        <p style="font-family: Times New Roman; font-size: 30px; color: Maroon" align="center">
                            No Data</p>
                    </EmptyDataTemplate>
                </asp:GridView>
                <!-- END CONTENT -->
                <!-- START PAGED-->
                <div id="pages">
                    <webdiyer:AspNetPager ID="AspNetPager" runat="server" HorizontalAlign="Right" CurrentPageButtonPosition="Center"
                        ShowNavigationToolTip="True" OnPageChanging="AspNetPagerPageChanging" ShowPageIndexBox="Always" SubmitButtonClass="btnPaged"
                        AlwaysShow="True" EnableViewState="True">
                    </webdiyer:AspNetPager>
                </div>
                <%--<div>
                Với những chủ hàng đã chọn:<asp:DropDownList ID="DropDownList1" runat="server">
                        <asp:ListItem Value="1">Xóa</asp:ListItem>
                    </asp:DropDownList>
                    <asp:Button ID="btnEnter" runat="server" Text="Thực hiện" 
                        onclick="btnEnter_Click" />
                </div>--%>
            </div>
        </div>
    </div>
    <asp:HiddenField ID="HiddenFieldStatusOrder" Value=" ASC " runat="server" />
    <asp:HiddenField ID="HiddenFieldOrderBy" Value="" runat="server" />
    <asp:HiddenField ID="HiddenFieldStringFilter" Value="" runat="server" />
</asp:Content>
